﻿

using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Dtos.Clients;
[ProtoContract]
public class IotEquipWarnDto
{
    /// <summary>
    /// 设备类型
    /// </summary>
    [ProtoMember(1)]
    public string EquipType { get; set; }
    /// <summary>
    /// 错误码
    /// </summary>
    [ProtoMember(2)]
    public string ErrorCode { get; set; }
    /// <summary>
    /// 错误时间
    /// </summary>
    [ProtoMember(3)]
    public DateTime ErrorTime { get; set; }
    /// <summary>
    /// 设备id
    /// </summary>
    [ProtoMember(4)]
    public long EquipId { get; set; }
    /// <summary>
    /// 数据
    /// </summary>
    [ProtoMember(5)]
    public string Data { get; set; }

    /// <summary>
    /// 0未处理、1已处理
    /// </summary>
    [ProtoMember(6)]
    public int Status { get; set; }
    /// <summary>
    /// 设备号
    /// </summary>
    [ProtoMember(7)]
    public string EquipNum { get; set; }
    /// <summary>
    /// 协议
    /// </summary>
    [ProtoMember(8)]
    public string ProtobufType { get; set; }

    /// <summary>
    /// 警报类型 1=火灾，2=其他报警
    /// </summary>
    [ProtoMember(8)]
    public int AlarmType { get; set; }
}
